<template>
    <div>
       <footer>
           <div class="center-box">
               <div class="first-box">
                   <div class="logo-img"><img src="../assets/productImg/shangyun_logo.png" alt=""></div>
                   <span class="word"> shangyuninfo.com</span>
               </div>
               <div class="second-box">
                   <ul class="bottom-ul">
                       <div class="fast-nav">快速导航</div>
                       <router-link to="/index" tag="li">首页</router-link>
                       <router-link to="/product" tag="li">产品</router-link>
                       <router-link to="/laboratory" tag="li">星火实验室</router-link>
                       <router-link to="/news" tag="li">新闻中心</router-link>
                       <router-link to="/about" tag="li">关于我们</router-link>
                   </ul>
               </div>
               <div class="third-box">
                   <h5>官方公众微信号</h5>
                   <div class="pablic"><img :src='`http://www.shangyuninfo.com/api/profile/qrCodeImg/${img}`' alt=""></div>
               </div>
               <div class="forth-box">
                   <ul>
                       <h5 >联系我们</h5>
<!--                       <li><span class="special">地址：</span>河北省石家庄方大科技园</li>-->
<!--                       <li><span class="special">电话：</span>186-3390-0235</li>-->
<!--                       <li><span class="special">邮箱：</span>66970457@qq.com</li>-->
                       <li v-for="(item,index) in address" :key="index"><span class="special">{{item.dictLabel}}：</span>{{item.dictValue}}</li>
                   </ul>
               </div>
           </div>
       </footer>
        <div class="copyright">版权所有©河北尚云信息科技有限公司2012-2020保留一切权力</div>
    </div>
</template>

<script>
    import {connectUs, qrCode} from "../api";

    export default {
        name: "bottomFoot",
        data(){
            return{
                img:"",
                address:""//存放底部地址
            }
        },
        created() {
            qrCode ().then(res=>{
                // console.log(res)
                this.img=res.dictValue
                // console.log(this.img)
            }),
            connectUs ().then(res=>{
                // console.log(res)
                this.address=res
            })
        }
    }
</script>

<style scoped>
footer{
    margin-top: 20px;
    height: 225px;
    background: #181819;
}
.center-box{
    display: flex;
    overflow: hidden;
    width: 1000px;
    margin: auto;
}
.logo-img{
    width: 120px;
    height: 48px;
}
.logo-img>img{
    width: 100%;
    height: 100%;
}
.first-box{
    margin: 50px 0;
    position: relative;
    display: flex;
    width: 250px;
    height: 48px;
    line-height: 48px;
}
.word{
    margin-left: 20px;
    font-size: 14px;
    color: #59585a;
}
.word::before{
    content: "";
    width: 1px;
    height: 15px;
    border-left: 1px solid gray;
    position: absolute;
    left: 117px;
    top: 17px;
}
.second-box{
    margin: 15px 35px 0;
    display: flex;
    color: #888889;
}
    .fast-nav{
        font-size: 14px;
        color: #007aff;
        margin: 20px 0;
    }
    .bottom-ul>li{
       font-size: 14px;
        padding: 5px 0;
    }
.bottom-ul>li:hover{
    color: #007aff;
}
    .pablic{
        width: 150px;
        height: 150px;
    }
.pablic>img{
    width: 100%;
    height: 100%;
}
    .third-box{
        margin: 0 90px;
        color: white;
    }
    h5{
        margin: 20px 0;
        height: 25px;
        color: white;
    }
    .forth-box{
        margin: 0 20PX;
        color: #888889;
    }
.forth-box li{
    font-size: 14px;
    padding: 10px 0;
}
    .special{
        font-size: 14px;
        color: #1f8efe;
    }
    .copyright{
        background-color: black ;
        text-align: center;
        font-size: 12px;
        color: #888889;
    }
</style>